/**
 * Created by linyi on 2019/2/27
 */
@import 'colors';

// breadcrumb
.ant-breadcrumb > span:last-child {
  font-weight: 600;
}

// menu
.ant-menu-inline {
  border-right: none;
}
.ant-menu-inline .ant-menu-submenu-title {
  font-size: 14px;
}
.ant-menu-inline .ant-menu-item {
  font-size: 13px;
}
.ant-menu-inline .ant-menu-item-selected:after {
  opacity: 0;
}
.ant-menu-inline .ant-menu-item:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  border-left: 3px solid #24bf00;
  opacity: 0;
  transform: scaleY(0.0001);
  transition: transform 0.15s cubic-bezier(0.215, 0.61, 0.355, 1),
    opacity 0.15s cubic-bezier(0.215, 0.61, 0.355, 1);
}
.ant-menu-inline .ant-menu-item-selected:before {
  opacity: 1;
  transform: scaleY(1);
}
.ant-menu-inline > .ant-menu-submenu > .ant-menu-submenu-title {
  line-height: 45px;
  height: 45px;
}
.ant-menu-inline .ant-menu-item,
.ant-menu-inline .ant-menu-submenu-title {
  margin-top: 0;
  margin-bottom: 0;
}
.ant-menu-inline .ant-menu-item:not(:last-child) {
  margin-bottom: 0;
}
.ant-menu-item > a {
  color: #949494;
}
.ant-menu-item-selected > a,
.ant-menu-item-selected > a:hover {
  color: $primary;
}
.ant-menu-inline .ant-menu-item {
  width: 100%;
}

// table
.ant-table {
  .ant-table-thead > tr > th {
    color: #878787;
  }
}

// pagination
ul.ant-table-pagination.ant-pagination {
  float: none;
  display: flex;
  padding: 0 20px;
  justify-content: flex-end;
  align-items: center;

  .ant-pagination-total-text {
    flex-grow: 1;
  }

  .ant-pagination-total-text,
  .ant-pagination-item:not(.ant-pagination-item-active) a,
  .ant-pagination-options-quick-jumper {
    color: #878787;
  }

  .ant-pagination-total-text,
  .ant-pagination-item {
    line-height: 25px;
  }

  .ant-select-selection--single {
    height: 25px;
  }
  .ant-select-selection__rendered {
    line-height: 23px;
  }

  .ant-pagination-options-quick-jumper {
    height: 25px;
    line-height: 25px;

    input {
      height: 25px;
    }
  }
}
